<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<title>我的余额</title>
<link type="text/css" href="../css/reset.css" rel="stylesheet" />
<link type="text/css" href="../css/public.css" rel="stylesheet" />
<link type="text/css" href="../css/style.css" rel="stylesheet" />
<link type="text/css" href="../css/wode.css" rel="stylesheet" />
<script>
    var deviceWidth = Math.min(640, window.innerWidth)
    document.documentElement.style.fontSize = deviceWidth / 7.5 + "px"
</script>
<script src="../js/jquery.min.js?v=2.1.4"></script>
<script src="../js/core.js"></script>
<script src="../js/wodeyuechakan.js"></script>
</head>

<body>
<!-- top -->
<div class="header">
    <header class="p_header public-red">
        <a href="javascript:history.go(-1);" class="p_header_left">
            <i class="p_left" title="返回"></i>
        </a>
        <h1 class="p_dizhi">我的余额</h1>
    </header>
</div>
<!--我的余额-->
<div class="dianpu_title w_xxtaba">
    <ul class="clearfix w_xxtab_tit buy_yue">
        <li class="curr">
            <a href="javascript:selectpage(1);">全部</a>
        </li>
        <li>
            <a href="javascript:selectpage(2);">累计收入</a>
        </li>
        <li>
            <a href="javascript:selectpage(3);">累计消费</a>
        </li>
    </ul>
    <div class="w_ddcon1">
    	<div class="public-jianxi"></div>
    	<dl class="yue_list" id="dianpuxinxi">
    	</dl>
    	<dl class="yue_list" id="dianpuxinxi2">
    	</dl>
    	<dl class="yue_list" id="dianpuxinxi3">
    	</dl>
    </div>
    
</div>
<input type="hidden" value="1" id="tuijians"/>

<script type="text/javascript" src="../js/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
$(function () {
   $('.w_xxtab_tit li').on('click',function(){
        //获得当前被点击的元素索引值
        var Index = $(this).index();
        //给菜单添加选择样式
        $(this).addClass('curr').siblings().removeClass('curr');
        //显示对应的div
		$('.w_xxtaba').children('div').eq(Index).show().siblings('div').hide();
   });
});

</script>
<script>
	     	function selectpage(tui){
		 if(tui==1){
		 	ss=0;
		 	 ss2=0;
       ss3=0;
       currentPage=1;
       currentPage2=1;
     currentPage3=1;
      $("#dianpuxinxi").html("");
           $("#dianpuxinxi2").html("");
      $("#dianpuxinxi3").html("");
	         wodeyuechakan();
	          }else if(tui==2){
	          	 	ss=0;
		 	 ss2=0;
       ss3=0;
       currentPage=1;
       currentPage2=1;
     currentPage3=1;
      $("#dianpuxinxi").html("");
           $("#dianpuxinxi2").html("");
      $("#dianpuxinxi3").html("");
	          	wodeyuechakan2();
	          }else if(tui==3){
	          	 	ss=0;
		 	 ss2=0;
       ss3=0;
       currentPage=1;
       currentPage2=1;
     currentPage3=1;
      $("#dianpuxinxi").html("");
           $("#dianpuxinxi2").html("");
      $("#dianpuxinxi3").html("");
	         wodeyuechakan3();
	          }
		$("#tuijians").val(tui);
		
	}
		 $(window).scroll(function() {
    if ($(document).scrollTop() >= $(document).height() - $(window).height()) {
	    var tui=$("#tuijians").val();
	          if(tui==1){
               currentPage++
	          wodeyuechakan();
	          }else if(tui==2){
	          	currentPage2++
	         wodeyuechakan2();
	          }else if(tui==3){
	            currentPage3++
	          wodeyuechakan3();
	          }
	          }
});
	       
	
</script>

</body>
</html>